#!/bin/bash

function synCall() {
    result=`curl --request GET --url 'http://localhost:8080/demo/hi?name=gys'`
#    result=`curl --request GET --url 'http://localhost:8080/demo/hi?name=gys' 2>&1`
    echo "$result" >> hi.log
    echo "$result"
}

for i in {1..20} ; do
  synCall &
done
synCall
